package com.itheima.day08.myTreeSet.test1;

import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeSet<Integer> treeSet = new TreeSet<>();
        treeSet.add(5);
        treeSet.add(7);
        treeSet.add(6);
        treeSet.add(9);
        treeSet.add(2);
        treeSet.add(1);
        System.out.println(treeSet);
    }
}
